Skip to content

Conversation

@opjt
Copy link
Contributor

@opjt opjt commented Nov 25, 2025

related issue #3851

@AkihiroSuda

changes

fixes

  • Added validation to require the --label flag for the update command.
  • Added namespace existence checks to both the update and inspect commands.
    • (inspect) If non-existent namespaces are included, a warning log is now emitted.
      • this logic is based on the behaviorvolume-inspect

features

  • Enhanced namespace inspect output:
    • Added Containers information (count, ids)
    • Added Images information (count, ids)
    • Added Volumes information (count, names)
  • The inspect command now provides the same level of information available in namespace list.

@opjt opjt force-pushed the fix/namespace-issue branch 2 times, most recently from a34a665 to 21163f0 Compare November 25, 2025 23:45
@AkihiroSuda AkihiroSuda added this to the v2.2.1 (?) milestone Nov 27, 2025
@AkihiroSuda AkihiroSuda requested a review from a team November 28, 2025 07:53
@Shubhranshu153
Copy link
Contributor

NIT: Squash the commits. (Probably 2 commits, one for the feature and one for the fix)

@opjt opjt changed the title fix: Improve namespace validation logic for update, inspect command feat: Improve namespace validation logic and enhanced inspect output Nov 29, 2025
@opjt opjt force-pushed the fix/namespace-issue branch from 2a7ac0e to 0a3ac58 Compare November 29, 2025 02:37
@opjt opjt force-pushed the fix/namespace-issue branch from a5d875c to 5ea5532 Compare November 29, 2025 09:47
@opjt opjt force-pushed the fix/namespace-issue branch from a7a7972 to e1b84ae Compare November 29, 2025 10:26
@opjt
Copy link
Contributor Author

opjt commented Dec 1, 2025

@AkihiroSuda When you have time, could you please take a look at this PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why include IDs?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will make inspect slower, no?

@AkihiroSuda
Copy link
Member

features

This seems overloaded to this PR recently?
I suggest splitting this to another PR for further discussion.
By default, the namespace operations should remain lightweight.

@opjt
Copy link
Contributor Author

opjt commented Dec 2, 2025

Thank you for the suggestion.

Regarding namespace inspect, I agree that it should contain more details, aligning with the discussion in 3851 . Is it acceptable to omit the IDs information in the output?

I also agree that this PR is currently overloaded with a mix of fixes and features, which makes it hard to review. I will split the changes into separate, more focused PRs for better reviewability and resubmit them shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants